package com.spring.common.web.model;

import java.math.BigDecimal;
import java.util.Date;

public class Rechargecard extends Contract{
    private String id;

    private String cUserId;

    private String cRechargeApplicationid;

    private String cardNumber;

    private Boolean isenable;

    private BigDecimal balance;

    private Date beginTime;

    private String cardOutNumber;

    private String rechargeNumber;

    private String userName;

    private BigDecimal discountRate;

    private String contractName;

    private Date endTime;

    private String kidsParkid;

    private String contractid;

    private Integer rechargecardcategory;

    private Date createdtime;

    private Date changedtime;

    private String initialoperatorid;

    private String initialoperatorname;

    private String operatorid;

    private String operatorname;

    private Integer entityavailablestate;
    
    public void setData(RechargecardApplication rechargecardApplication,Contract contract){
		this.setId(rechargecardApplication.getRechargecardID());
		this.setCardNumber(contract.getCardNumber());
		this.setCardOutNumber(contract.getCardOutNumber());
		this.setContractName(contract.getName());
		this.setBeginTime(contract.getBegintime());
		this.setEndTime(contract.getEndtime());
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getcUserId() {
        return cUserId;
    }

    public void setcUserId(String cUserId) {
        this.cUserId = cUserId == null ? null : cUserId.trim();
    }

    public String getcRechargeApplicationid() {
        return cRechargeApplicationid;
    }

    public void setcRechargeApplicationid(String cRechargeApplicationid) {
        this.cRechargeApplicationid = cRechargeApplicationid == null ? null : cRechargeApplicationid.trim();
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber == null ? null : cardNumber.trim();
    }

    public Boolean getIsenable() {
        return isenable;
    }

    public void setIsenable(Boolean isenable) {
        this.isenable = isenable;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public String getCardOutNumber() {
        return cardOutNumber;
    }

    public void setCardOutNumber(String cardOutNumber) {
        this.cardOutNumber = cardOutNumber == null ? null : cardOutNumber.trim();
    }

    public String getRechargeNumber() {
        return rechargeNumber;
    }

    public void setRechargeNumber(String rechargeNumber) {
        this.rechargeNumber = rechargeNumber == null ? null : rechargeNumber.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public BigDecimal getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(BigDecimal discountRate) {
        this.discountRate = discountRate;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName == null ? null : contractName.trim();
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getKidsParkid() {
        return kidsParkid;
    }

    public void setKidsParkid(String kidsParkid) {
        this.kidsParkid = kidsParkid == null ? null : kidsParkid.trim();
    }

    public String getContractid() {
        return contractid;
    }

    public void setContractid(String contractid) {
        this.contractid = contractid == null ? null : contractid.trim();
    }

    public Integer getRechargecardcategory() {
        return rechargecardcategory;
    }

    public void setRechargecardcategory(Integer rechargecardcategory) {
        this.rechargecardcategory = rechargecardcategory;
    }

    public Date getCreatedtime() {
        return createdtime;
    }

    public void setCreatedtime(Date createdtime) {
        this.createdtime = createdtime;
    }

    public Date getChangedtime() {
        return changedtime;
    }

    public void setChangedtime(Date changedtime) {
        this.changedtime = changedtime;
    }

    public String getInitialoperatorid() {
        return initialoperatorid;
    }

    public void setInitialoperatorid(String initialoperatorid) {
        this.initialoperatorid = initialoperatorid == null ? null : initialoperatorid.trim();
    }

    public String getInitialoperatorname() {
        return initialoperatorname;
    }

    public void setInitialoperatorname(String initialoperatorname) {
        this.initialoperatorname = initialoperatorname == null ? null : initialoperatorname.trim();
    }

    public String getOperatorid() {
        return operatorid;
    }

    public void setOperatorid(String operatorid) {
        this.operatorid = operatorid == null ? null : operatorid.trim();
    }

    public String getOperatorname() {
        return operatorname;
    }

    public void setOperatorname(String operatorname) {
        this.operatorname = operatorname == null ? null : operatorname.trim();
    }

    public Integer getEntityavailablestate() {
        return entityavailablestate;
    }

    public void setEntityavailablestate(Integer entityavailablestate) {
        this.entityavailablestate = entityavailablestate;
    }
}